package com.rpc.transport;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author yangzhuo
 * @date 2017/6/4
 */
@ToString
public class ResponseData implements Serializable {
    @Getter
    @Setter
    private String serverHost;
    /**
     * 数据传输协议http/mchead
     */
    @Getter
    @Setter
    private int    protocol;
    /**
     * 传输数据类型,json/xml/etc
     */
    @Getter
    @Setter
    private int    dataType;

    @Getter
    @Setter
    private int    errno;
    @Getter
    @Setter
    private String requestId;

    @Getter
    @Setter
    private String message;

    @Getter
    @Setter
    private Object responseData;

    @Getter
    @Setter
    private Throwable exception;

}
